﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Cloud.Core.Model
{
    /// <summary>
    /// 秤表(Apple)
    /// </summary>
    public class Apple
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 客户姓名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 操作日期
        /// </summary>
        public DateTime? OperatDate { get; set; }
        /// <summary>
        /// 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 箱数
        /// </summary>
        public int Count { get; set; }
        /// <summary>
        /// 每箱个数
        /// </summary>
        public int eCount { get; set; }
        /// <summary>
        /// 包装
        /// </summary>
        public string Pack { get; set; }
        /// <summary>
        /// 价格
        /// </summary>
        public int Price { get; set; }
        /// <summary>
        /// 结构形式
        /// </summary>
        public int Money { get; set; }
        /// <summary>
        /// 电话
        /// </summary>
        public string Phone { get; set; }
        /// <summary>
        /// 是否支付
        /// </summary>
        public string Payment { get; set; }
        /// <summary>
        /// 推荐人
        /// </summary>
        public string Referee { get; set; }

        /// <summary>
        /// 是否发货
        /// </summary>
        public string DeliverGoods { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string ModifyUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }

        public Apple()
        {
            this.CreateDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            this.ModifyDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            this.CreateUserId = "zhengyb";
            this.ModifyUserId = "zhengyb";
        }
    }
}
